#
# Makefile -- for user threads library with synchronization
#
 
CC = gcc
INCLUDE_PATH=.
CFLAGS = -g -I$(INCLUDE_PATH) -w -pthread
 
LIBS = mythread.a

TESTS = mytest

all: $(TESTS)

$(LIBS): mythread.o myqueue.o mysched.o
	$(AR) ru $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

mytest: mytest.o $(OBJS) $(LIBS)
	$(CC) $(CFLAGS) -o $@ $^

clean:
	$(RM) $(TESTS) a.out core *.o *.BAK *.CKP *~ #*
